<include file="Public:header" />
<div class="container"> 
  <div class="mainbody"> <include file="Public:gameMenu" />
    <div class="rig_lm03">
    <!--<form method="POST" action="" id="filter-form" style="margin-left:-10px;">
          <input type="text"  class="searcheTxt" placeholder="请输入活动标题搜索" name="keys" id="keys" value="<?php echo $_REQUEST['keys']?>">
          <button type="button" onclick="changeSelect()" class="btn btn-primary btn-sm"><span class="glyphicon glyphicon-search"></span> 搜索</button>
    </form>-->
      <div class="detail">
        <div id="tabCot_product_1" class="tabCot" >
        
		<table id="searchTable" style="width:100%">
			<tr>
				<th w_num="line" width="20%;">序号</th>
				<th w_index="gname"  width="40%;">游戏</th>
				<th w_render="operate" width="40%;">操作</th>
			</tr>
		</table>

        </div>
      </div>
    </div>
  </div>
</div>
<include file="Public:footer" /> 
<script type="text/javascript">
var gridObj;
$(function () {
	var parames = $("#filter-form").length>0 ? $("#filter-form").serializeArray() : {};
	
	$('#aIndex').addClass('rig_seleli');
	$("tr:odd").addClass("even");
	$("tr:even").addClass("odd");
	gridObj = $.fn.bsgrid.init('searchTable', {
		url: '__URL__/loadlist',
		otherParames: parames,
		pageSizeSelect: true,
		rowSelectedColor:false,
		pageSize: 10,
		rowHoverColor: true
	});
});

function operate(record, rowIndex, colIndex, options) {
    var id = gridObj.getRecordIndexValue(record, 'sid');
	//return '<a href="#" onclick="alert(\'ID=' + gridObj.getRecordIndexValue(record, 'sid') + '\');">Operate</a>';
	return '<a href="__URL__/userList?id='+id+'" title="排名">排名</a>&nbsp;&nbsp;&nbsp;&nbsp;';
}

	
function changeSelect() {
	gridObj.options.otherParames = $("#filter-form").serializeArray();
	gridObj.refreshPage();
}


function confirmDelete(id){
if (confirm("确认要删除这条数据吗？")) {
       location.href="__URL__/delActivity?id="+id;
     }
}

</script>